package com.cn.jinl.domain;

import com.cn.jinl.utils.CommonUtil;
import com.google.common.collect.ImmutableMap;
import java.util.Date;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;

public class BoxManageVo {
    private String boxCode;
    private String printUserName;
    private String printCode;
    private String printTime;
    private String codeStatus;
    private String itemTypeId;
    private String gradeValue;
    private String thNumber;
    private String storageCode;//入库号
    private String deviceCode;//机台号
    private String userName;//入库人
    private String storageType;//入库类型
    private String storageOutCode;//出库号
    private String storageOutType;//出库类型
    private String orderNum;//订单号
    private String customer;//客户
    private String orderOutCode;//发货单号
    private String storageOutUser;//出库人
    private String storageOutTime;//出库时间
    private String msg;

    public static final transient Map<String, String> STATUSCODEMAP =
            ImmutableMap.of("0", "未使用", "1", "已使用","2","已作废");

    public String getPrintCodeCn() {
        return STATUSCODEMAP.get(getPrintCode());
    }
    public String getCodeStatusCn() {
        if(StringUtils.equals("1",getCodeStatus())){
            return "生产已入库";
        }else if(StringUtils.equals("2",getCodeStatus())){
            return "整理已入库";
        }else if(StringUtils.equals("3",getCodeStatus())){
            return "退货已入库";
        }else if(StringUtils.equals("4",getCodeStatus())){
            return "销售已入库";
        }else if(StringUtils.equals("5",getCodeStatus())){
            return "报废已入库";
        }else if(StringUtils.equals("6",getCodeStatus())){
            return "订单已出库";
        } else if(StringUtils.equals("7",getCodeStatus())){
            return "清理已出库";
        }else if(StringUtils.isNotBlank(getPrintTime())){
            return "已打印";
        }
        return "待打印";
    }
    public String getBoxCode() {
        return boxCode;
    }

    public void setBoxCode(String boxCode) {
        this.boxCode = boxCode;
    }

    public String getPrintUserName() {
        return printUserName;
    }

    public void setPrintUserName(String printUserName) {
        this.printUserName = printUserName;
    }

    public String getPrintTime() {
        return printTime;
    }

    public void setPrintTime(String printTime) {
        this.printTime = printTime;
    }

    public String getCodeStatus() {
        return codeStatus;
    }

    public void setCodeStatus(String codeStatus) {
        this.codeStatus = codeStatus;
    }

    public String getItemTypeId() {
        return itemTypeId;
    }

    public void setItemTypeId(String itemTypeId) {
        this.itemTypeId = itemTypeId;
    }

    public String getGradeValue() {
        return gradeValue;
    }

    public void setGradeValue(String gradeValue) {
        this.gradeValue = gradeValue;
    }

    public String getThNumber() {
        return thNumber;
    }

    public void setThNumber(String thNumber) {
        this.thNumber = thNumber;
    }

    public String getStorageCode() {
        return storageCode;
    }

    public void setStorageCode(String storageCode) {
        this.storageCode = storageCode;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getStorageType() {
        return storageType;
    }

    public void setStorageType(String storageType) {
        this.storageType = storageType;
    }

    public String getStorageOutCode() {
        return storageOutCode;
    }

    public void setStorageOutCode(String storageOutCode) {
        this.storageOutCode = storageOutCode;
    }

    public String getStorageOutType() {
        return storageOutType;
    }

    public void setStorageOutType(String storageOutType) {
        this.storageOutType = storageOutType;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getCustomer() {
        return customer;
    }

    public void setCustomer(String customer) {
        this.customer = customer;
    }

    public String getOrderOutCode() {
        return orderOutCode;
    }

    public void setOrderOutCode(String orderOutCode) {
        this.orderOutCode = orderOutCode;
    }

    public String getStorageOutUser() {
        return storageOutUser;
    }

    public void setStorageOutUser(String storageOutUser) {
        this.storageOutUser = storageOutUser;
    }

    public String getStorageOutTime() {
        return storageOutTime;
    }

    public void setStorageOutTime(String storageOutTime) {
        this.storageOutTime = storageOutTime;
    }

    public String getPrintCode() {
        return printCode;
    }

    public void setPrintCode(String printCode) {
        this.printCode = printCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}